package com.warm.pump.module.skd.bean.po.gen;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class ScheduleInstanceDtlExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int limitStart = -1;

    protected int limitOffset = -1;

    public ScheduleInstanceDtlExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart=limitStart;
    }

    public int getLimitStart() {
        return limitStart;
    }

    public void setLimitOffset(int limitOffset) {
        this.limitOffset=limitOffset;
    }

    public int getLimitOffset() {
        return limitOffset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }



        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "Id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "Id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "Id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "Id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "Id");
            return (Criteria) this;
        }
        public Criteria andInstanceIdIsNull() {
            addCriterion("instance_id is null");
            return (Criteria) this;
        }

        public Criteria andInstanceIdIsNotNull() {
            addCriterion("instance_id is not null");
            return (Criteria) this;
        }

        public Criteria andInstanceIdEqualTo(String value) {
            addCriterion("instance_id =", value, "InstanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdNotEqualTo(String value) {
            addCriterion("instance_id <>", value, "InstanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdGreaterThan(String value) {
            addCriterion("instance_id >", value, "InstanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdGreaterThanOrEqualTo(String value) {
            addCriterion("instance_id >=", value, "InstanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdLessThan(String value) {
            addCriterion("instance_id <", value, "InstanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdLessThanOrEqualTo(String value) {
            addCriterion("instance_id <=", value, "InstanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdLike(String value) {
            addCriterion("instance_id like", value, "InstanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdNotLike(String value) {
            addCriterion("instance_id not like", value, "InstanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdIn(List<String> values) {
            addCriterion("instance_id in", values, "InstanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdNotIn(List<String> values) {
            addCriterion("instance_id not in", values, "InstanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdBetween(String value1, String value2) {
            addCriterion("instance_id between", value1, value2, "InstanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdNotBetween(String value1, String value2) {
            addCriterion("instance_id not between", value1, value2, "InstanceId");
            return (Criteria) this;
        }
        public Criteria andWorkIdIsNull() {
            addCriterion("work_id is null");
            return (Criteria) this;
        }

        public Criteria andWorkIdIsNotNull() {
            addCriterion("work_id is not null");
            return (Criteria) this;
        }

        public Criteria andWorkIdEqualTo(Long value) {
            addCriterion("work_id =", value, "WorkId");
            return (Criteria) this;
        }

        public Criteria andWorkIdNotEqualTo(Long value) {
            addCriterion("work_id <>", value, "WorkId");
            return (Criteria) this;
        }

        public Criteria andWorkIdGreaterThan(Long value) {
            addCriterion("work_id >", value, "WorkId");
            return (Criteria) this;
        }

        public Criteria andWorkIdGreaterThanOrEqualTo(Long value) {
            addCriterion("work_id >=", value, "WorkId");
            return (Criteria) this;
        }

        public Criteria andWorkIdLessThan(Long value) {
            addCriterion("work_id <", value, "WorkId");
            return (Criteria) this;
        }

        public Criteria andWorkIdLessThanOrEqualTo(Long value) {
            addCriterion("work_id <=", value, "WorkId");
            return (Criteria) this;
        }

        public Criteria andWorkIdIn(List<Long> values) {
            addCriterion("work_id in", values, "WorkId");
            return (Criteria) this;
        }

        public Criteria andWorkIdNotIn(List<Long> values) {
            addCriterion("work_id not in", values, "WorkId");
            return (Criteria) this;
        }

        public Criteria andWorkIdBetween(Long value1, Long value2) {
            addCriterion("work_id between", value1, value2, "WorkId");
            return (Criteria) this;
        }

        public Criteria andWorkIdNotBetween(Long value1, Long value2) {
            addCriterion("work_id not between", value1, value2, "WorkId");
            return (Criteria) this;
        }
        public Criteria andWorkNameIsNull() {
            addCriterion("work_name is null");
            return (Criteria) this;
        }

        public Criteria andWorkNameIsNotNull() {
            addCriterion("work_name is not null");
            return (Criteria) this;
        }

        public Criteria andWorkNameEqualTo(String value) {
            addCriterion("work_name =", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameNotEqualTo(String value) {
            addCriterion("work_name <>", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameGreaterThan(String value) {
            addCriterion("work_name >", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameGreaterThanOrEqualTo(String value) {
            addCriterion("work_name >=", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameLessThan(String value) {
            addCriterion("work_name <", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameLessThanOrEqualTo(String value) {
            addCriterion("work_name <=", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameLike(String value) {
            addCriterion("work_name like", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameNotLike(String value) {
            addCriterion("work_name not like", value, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameIn(List<String> values) {
            addCriterion("work_name in", values, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameNotIn(List<String> values) {
            addCriterion("work_name not in", values, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameBetween(String value1, String value2) {
            addCriterion("work_name between", value1, value2, "WorkName");
            return (Criteria) this;
        }

        public Criteria andWorkNameNotBetween(String value1, String value2) {
            addCriterion("work_name not between", value1, value2, "WorkName");
            return (Criteria) this;
        }
        public Criteria andWorkItemIdIsNull() {
            addCriterion("work_item_id is null");
            return (Criteria) this;
        }

        public Criteria andWorkItemIdIsNotNull() {
            addCriterion("work_item_id is not null");
            return (Criteria) this;
        }

        public Criteria andWorkItemIdEqualTo(Long value) {
            addCriterion("work_item_id =", value, "WorkItemId");
            return (Criteria) this;
        }

        public Criteria andWorkItemIdNotEqualTo(Long value) {
            addCriterion("work_item_id <>", value, "WorkItemId");
            return (Criteria) this;
        }

        public Criteria andWorkItemIdGreaterThan(Long value) {
            addCriterion("work_item_id >", value, "WorkItemId");
            return (Criteria) this;
        }

        public Criteria andWorkItemIdGreaterThanOrEqualTo(Long value) {
            addCriterion("work_item_id >=", value, "WorkItemId");
            return (Criteria) this;
        }

        public Criteria andWorkItemIdLessThan(Long value) {
            addCriterion("work_item_id <", value, "WorkItemId");
            return (Criteria) this;
        }

        public Criteria andWorkItemIdLessThanOrEqualTo(Long value) {
            addCriterion("work_item_id <=", value, "WorkItemId");
            return (Criteria) this;
        }

        public Criteria andWorkItemIdIn(List<Long> values) {
            addCriterion("work_item_id in", values, "WorkItemId");
            return (Criteria) this;
        }

        public Criteria andWorkItemIdNotIn(List<Long> values) {
            addCriterion("work_item_id not in", values, "WorkItemId");
            return (Criteria) this;
        }

        public Criteria andWorkItemIdBetween(Long value1, Long value2) {
            addCriterion("work_item_id between", value1, value2, "WorkItemId");
            return (Criteria) this;
        }

        public Criteria andWorkItemIdNotBetween(Long value1, Long value2) {
            addCriterion("work_item_id not between", value1, value2, "WorkItemId");
            return (Criteria) this;
        }
        public Criteria andWorkItemNameIsNull() {
            addCriterion("work_item_name is null");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameIsNotNull() {
            addCriterion("work_item_name is not null");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameEqualTo(String value) {
            addCriterion("work_item_name =", value, "WorkItemName");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameNotEqualTo(String value) {
            addCriterion("work_item_name <>", value, "WorkItemName");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameGreaterThan(String value) {
            addCriterion("work_item_name >", value, "WorkItemName");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameGreaterThanOrEqualTo(String value) {
            addCriterion("work_item_name >=", value, "WorkItemName");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameLessThan(String value) {
            addCriterion("work_item_name <", value, "WorkItemName");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameLessThanOrEqualTo(String value) {
            addCriterion("work_item_name <=", value, "WorkItemName");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameLike(String value) {
            addCriterion("work_item_name like", value, "WorkItemName");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameNotLike(String value) {
            addCriterion("work_item_name not like", value, "WorkItemName");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameIn(List<String> values) {
            addCriterion("work_item_name in", values, "WorkItemName");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameNotIn(List<String> values) {
            addCriterion("work_item_name not in", values, "WorkItemName");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameBetween(String value1, String value2) {
            addCriterion("work_item_name between", value1, value2, "WorkItemName");
            return (Criteria) this;
        }

        public Criteria andWorkItemNameNotBetween(String value1, String value2) {
            addCriterion("work_item_name not between", value1, value2, "WorkItemName");
            return (Criteria) this;
        }
        public Criteria andParamsIsNull() {
            addCriterion("params is null");
            return (Criteria) this;
        }

        public Criteria andParamsIsNotNull() {
            addCriterion("params is not null");
            return (Criteria) this;
        }

        public Criteria andParamsEqualTo(String value) {
            addCriterion("params =", value, "Params");
            return (Criteria) this;
        }

        public Criteria andParamsNotEqualTo(String value) {
            addCriterion("params <>", value, "Params");
            return (Criteria) this;
        }

        public Criteria andParamsGreaterThan(String value) {
            addCriterion("params >", value, "Params");
            return (Criteria) this;
        }

        public Criteria andParamsGreaterThanOrEqualTo(String value) {
            addCriterion("params >=", value, "Params");
            return (Criteria) this;
        }

        public Criteria andParamsLessThan(String value) {
            addCriterion("params <", value, "Params");
            return (Criteria) this;
        }

        public Criteria andParamsLessThanOrEqualTo(String value) {
            addCriterion("params <=", value, "Params");
            return (Criteria) this;
        }

        public Criteria andParamsLike(String value) {
            addCriterion("params like", value, "Params");
            return (Criteria) this;
        }

        public Criteria andParamsNotLike(String value) {
            addCriterion("params not like", value, "Params");
            return (Criteria) this;
        }

        public Criteria andParamsIn(List<String> values) {
            addCriterion("params in", values, "Params");
            return (Criteria) this;
        }

        public Criteria andParamsNotIn(List<String> values) {
            addCriterion("params not in", values, "Params");
            return (Criteria) this;
        }

        public Criteria andParamsBetween(String value1, String value2) {
            addCriterion("params between", value1, value2, "Params");
            return (Criteria) this;
        }

        public Criteria andParamsNotBetween(String value1, String value2) {
            addCriterion("params not between", value1, value2, "Params");
            return (Criteria) this;
        }
        public Criteria andRunStatusIsNull() {
            addCriterion("run_status is null");
            return (Criteria) this;
        }

        public Criteria andRunStatusIsNotNull() {
            addCriterion("run_status is not null");
            return (Criteria) this;
        }

        public Criteria andRunStatusEqualTo(Integer value) {
            addCriterion("run_status =", value, "RunStatus");
            return (Criteria) this;
        }

        public Criteria andRunStatusNotEqualTo(Integer value) {
            addCriterion("run_status <>", value, "RunStatus");
            return (Criteria) this;
        }

        public Criteria andRunStatusGreaterThan(Integer value) {
            addCriterion("run_status >", value, "RunStatus");
            return (Criteria) this;
        }

        public Criteria andRunStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("run_status >=", value, "RunStatus");
            return (Criteria) this;
        }

        public Criteria andRunStatusLessThan(Integer value) {
            addCriterion("run_status <", value, "RunStatus");
            return (Criteria) this;
        }

        public Criteria andRunStatusLessThanOrEqualTo(Integer value) {
            addCriterion("run_status <=", value, "RunStatus");
            return (Criteria) this;
        }

        public Criteria andRunStatusIn(List<Integer> values) {
            addCriterion("run_status in", values, "RunStatus");
            return (Criteria) this;
        }

        public Criteria andRunStatusNotIn(List<Integer> values) {
            addCriterion("run_status not in", values, "RunStatus");
            return (Criteria) this;
        }

        public Criteria andRunStatusBetween(Integer value1, Integer value2) {
            addCriterion("run_status between", value1, value2, "RunStatus");
            return (Criteria) this;
        }

        public Criteria andRunStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("run_status not between", value1, value2, "RunStatus");
            return (Criteria) this;
        }
        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "Remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "Remark");
            return (Criteria) this;
        }
        public Criteria andErrorIsNull() {
            addCriterion("error is null");
            return (Criteria) this;
        }

        public Criteria andErrorIsNotNull() {
            addCriterion("error is not null");
            return (Criteria) this;
        }

        public Criteria andErrorEqualTo(String value) {
            addCriterion("error =", value, "Error");
            return (Criteria) this;
        }

        public Criteria andErrorNotEqualTo(String value) {
            addCriterion("error <>", value, "Error");
            return (Criteria) this;
        }

        public Criteria andErrorGreaterThan(String value) {
            addCriterion("error >", value, "Error");
            return (Criteria) this;
        }

        public Criteria andErrorGreaterThanOrEqualTo(String value) {
            addCriterion("error >=", value, "Error");
            return (Criteria) this;
        }

        public Criteria andErrorLessThan(String value) {
            addCriterion("error <", value, "Error");
            return (Criteria) this;
        }

        public Criteria andErrorLessThanOrEqualTo(String value) {
            addCriterion("error <=", value, "Error");
            return (Criteria) this;
        }

        public Criteria andErrorLike(String value) {
            addCriterion("error like", value, "Error");
            return (Criteria) this;
        }

        public Criteria andErrorNotLike(String value) {
            addCriterion("error not like", value, "Error");
            return (Criteria) this;
        }

        public Criteria andErrorIn(List<String> values) {
            addCriterion("error in", values, "Error");
            return (Criteria) this;
        }

        public Criteria andErrorNotIn(List<String> values) {
            addCriterion("error not in", values, "Error");
            return (Criteria) this;
        }

        public Criteria andErrorBetween(String value1, String value2) {
            addCriterion("error between", value1, value2, "Error");
            return (Criteria) this;
        }

        public Criteria andErrorNotBetween(String value1, String value2) {
            addCriterion("error not between", value1, value2, "Error");
            return (Criteria) this;
        }
        public Criteria andExecIpIsNull() {
            addCriterion("exec_ip is null");
            return (Criteria) this;
        }

        public Criteria andExecIpIsNotNull() {
            addCriterion("exec_ip is not null");
            return (Criteria) this;
        }

        public Criteria andExecIpEqualTo(String value) {
            addCriterion("exec_ip =", value, "ExecIp");
            return (Criteria) this;
        }

        public Criteria andExecIpNotEqualTo(String value) {
            addCriterion("exec_ip <>", value, "ExecIp");
            return (Criteria) this;
        }

        public Criteria andExecIpGreaterThan(String value) {
            addCriterion("exec_ip >", value, "ExecIp");
            return (Criteria) this;
        }

        public Criteria andExecIpGreaterThanOrEqualTo(String value) {
            addCriterion("exec_ip >=", value, "ExecIp");
            return (Criteria) this;
        }

        public Criteria andExecIpLessThan(String value) {
            addCriterion("exec_ip <", value, "ExecIp");
            return (Criteria) this;
        }

        public Criteria andExecIpLessThanOrEqualTo(String value) {
            addCriterion("exec_ip <=", value, "ExecIp");
            return (Criteria) this;
        }

        public Criteria andExecIpLike(String value) {
            addCriterion("exec_ip like", value, "ExecIp");
            return (Criteria) this;
        }

        public Criteria andExecIpNotLike(String value) {
            addCriterion("exec_ip not like", value, "ExecIp");
            return (Criteria) this;
        }

        public Criteria andExecIpIn(List<String> values) {
            addCriterion("exec_ip in", values, "ExecIp");
            return (Criteria) this;
        }

        public Criteria andExecIpNotIn(List<String> values) {
            addCriterion("exec_ip not in", values, "ExecIp");
            return (Criteria) this;
        }

        public Criteria andExecIpBetween(String value1, String value2) {
            addCriterion("exec_ip between", value1, value2, "ExecIp");
            return (Criteria) this;
        }

        public Criteria andExecIpNotBetween(String value1, String value2) {
            addCriterion("exec_ip not between", value1, value2, "ExecIp");
            return (Criteria) this;
        }
        public Criteria andTotalNumIsNull() {
            addCriterion("total_num is null");
            return (Criteria) this;
        }

        public Criteria andTotalNumIsNotNull() {
            addCriterion("total_num is not null");
            return (Criteria) this;
        }

        public Criteria andTotalNumEqualTo(Integer value) {
            addCriterion("total_num =", value, "TotalNum");
            return (Criteria) this;
        }

        public Criteria andTotalNumNotEqualTo(Integer value) {
            addCriterion("total_num <>", value, "TotalNum");
            return (Criteria) this;
        }

        public Criteria andTotalNumGreaterThan(Integer value) {
            addCriterion("total_num >", value, "TotalNum");
            return (Criteria) this;
        }

        public Criteria andTotalNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_num >=", value, "TotalNum");
            return (Criteria) this;
        }

        public Criteria andTotalNumLessThan(Integer value) {
            addCriterion("total_num <", value, "TotalNum");
            return (Criteria) this;
        }

        public Criteria andTotalNumLessThanOrEqualTo(Integer value) {
            addCriterion("total_num <=", value, "TotalNum");
            return (Criteria) this;
        }

        public Criteria andTotalNumIn(List<Integer> values) {
            addCriterion("total_num in", values, "TotalNum");
            return (Criteria) this;
        }

        public Criteria andTotalNumNotIn(List<Integer> values) {
            addCriterion("total_num not in", values, "TotalNum");
            return (Criteria) this;
        }

        public Criteria andTotalNumBetween(Integer value1, Integer value2) {
            addCriterion("total_num between", value1, value2, "TotalNum");
            return (Criteria) this;
        }

        public Criteria andTotalNumNotBetween(Integer value1, Integer value2) {
            addCriterion("total_num not between", value1, value2, "TotalNum");
            return (Criteria) this;
        }
        public Criteria andSuccNumIsNull() {
            addCriterion("succ_num is null");
            return (Criteria) this;
        }

        public Criteria andSuccNumIsNotNull() {
            addCriterion("succ_num is not null");
            return (Criteria) this;
        }

        public Criteria andSuccNumEqualTo(Integer value) {
            addCriterion("succ_num =", value, "SuccNum");
            return (Criteria) this;
        }

        public Criteria andSuccNumNotEqualTo(Integer value) {
            addCriterion("succ_num <>", value, "SuccNum");
            return (Criteria) this;
        }

        public Criteria andSuccNumGreaterThan(Integer value) {
            addCriterion("succ_num >", value, "SuccNum");
            return (Criteria) this;
        }

        public Criteria andSuccNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("succ_num >=", value, "SuccNum");
            return (Criteria) this;
        }

        public Criteria andSuccNumLessThan(Integer value) {
            addCriterion("succ_num <", value, "SuccNum");
            return (Criteria) this;
        }

        public Criteria andSuccNumLessThanOrEqualTo(Integer value) {
            addCriterion("succ_num <=", value, "SuccNum");
            return (Criteria) this;
        }

        public Criteria andSuccNumIn(List<Integer> values) {
            addCriterion("succ_num in", values, "SuccNum");
            return (Criteria) this;
        }

        public Criteria andSuccNumNotIn(List<Integer> values) {
            addCriterion("succ_num not in", values, "SuccNum");
            return (Criteria) this;
        }

        public Criteria andSuccNumBetween(Integer value1, Integer value2) {
            addCriterion("succ_num between", value1, value2, "SuccNum");
            return (Criteria) this;
        }

        public Criteria andSuccNumNotBetween(Integer value1, Integer value2) {
            addCriterion("succ_num not between", value1, value2, "SuccNum");
            return (Criteria) this;
        }
        public Criteria andErrNumIsNull() {
            addCriterion("err_num is null");
            return (Criteria) this;
        }

        public Criteria andErrNumIsNotNull() {
            addCriterion("err_num is not null");
            return (Criteria) this;
        }

        public Criteria andErrNumEqualTo(Integer value) {
            addCriterion("err_num =", value, "ErrNum");
            return (Criteria) this;
        }

        public Criteria andErrNumNotEqualTo(Integer value) {
            addCriterion("err_num <>", value, "ErrNum");
            return (Criteria) this;
        }

        public Criteria andErrNumGreaterThan(Integer value) {
            addCriterion("err_num >", value, "ErrNum");
            return (Criteria) this;
        }

        public Criteria andErrNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("err_num >=", value, "ErrNum");
            return (Criteria) this;
        }

        public Criteria andErrNumLessThan(Integer value) {
            addCriterion("err_num <", value, "ErrNum");
            return (Criteria) this;
        }

        public Criteria andErrNumLessThanOrEqualTo(Integer value) {
            addCriterion("err_num <=", value, "ErrNum");
            return (Criteria) this;
        }

        public Criteria andErrNumIn(List<Integer> values) {
            addCriterion("err_num in", values, "ErrNum");
            return (Criteria) this;
        }

        public Criteria andErrNumNotIn(List<Integer> values) {
            addCriterion("err_num not in", values, "ErrNum");
            return (Criteria) this;
        }

        public Criteria andErrNumBetween(Integer value1, Integer value2) {
            addCriterion("err_num between", value1, value2, "ErrNum");
            return (Criteria) this;
        }

        public Criteria andErrNumNotBetween(Integer value1, Integer value2) {
            addCriterion("err_num not between", value1, value2, "ErrNum");
            return (Criteria) this;
        }
        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "CreateTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "CreateTime");
            return (Criteria) this;
        }
        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "UpdateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "UpdateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
